package com.bicon.base.data.pojo.botu;

import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import java.io.Serializable;

/**
 * <p>
 * 收货地址表
 * </p>
 *
 * @author zhoutyianqi
 * @since 2018-07-25
 */
public class Address extends Model<Address> {

    private static final long serialVersionUID = 1L;

    /**
     * 地址id
     */
    private String id;
    /**
     * 用户id
     */
    @TableField("user_id")
    private String userId;
    /**
     * 收货人
     */
    @TableField("address_name")
    private String addressName;
    /**
     * 手机号码
     */
    @TableField("address_phone")
    private String addressPhone;
    /**
     * 省份
     */
    @TableField("province_id")
    private String provinceId;
    /**
     * 城市
     */
    @TableField("city_id")
    private String cityId;
    /**
     * 区县
     */
    @TableField("area_id")
    private String areaId;
    /**
     * 街道
     */
    @TableField("address_street")
    private String addressStreet;
    /**
     * 邮政编码
     */
    @TableField("address_zip")
    private String addressZip;
    /**
     * 详细地址
     */
    @TableField("address_detailed")
    private String addressDetailed;
    /**
     * 地址标签
     */
    @TableField("address_tag")
    private String addressTag;
    /**
     * 0:默认地址，1:非默认地址
     */
    @TableField("address_default_choose")
    private String addressDefaultChoose;
    /**
     * 创建时间
     */
    @TableField("create_date")
    private Date createDate;
    /**
     * 创建时间
     */
    @TableField("update_date")
    private Date updateDate;
    /**
     * 逻辑删除
     */
    @TableField("logic_delete")
    private String logicDelete;


    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getAddressName() {
        return addressName;
    }

    public void setAddressName(String addressName) {
        this.addressName = addressName;
    }

    public String getAddressPhone() {
        return addressPhone;
    }

    public void setAddressPhone(String addressPhone) {
        this.addressPhone = addressPhone;
    }

    public String getProvinceId() {
        return provinceId;
    }

    public void setProvinceId(String provinceId) {
        this.provinceId = provinceId;
    }

    public String getCityId() {
        return cityId;
    }

    public void setCityId(String cityId) {
        this.cityId = cityId;
    }

    public String getAreaId() {
        return areaId;
    }

    public void setAreaId(String areaId) {
        this.areaId = areaId;
    }

    public String getAddressStreet() {
        return addressStreet;
    }

    public void setAddressStreet(String addressStreet) {
        this.addressStreet = addressStreet;
    }

    public String getAddressZip() {
        return addressZip;
    }

    public void setAddressZip(String addressZip) {
        this.addressZip = addressZip;
    }

    public String getAddressDetailed() {
        return addressDetailed;
    }

    public void setAddressDetailed(String addressDetailed) {
        this.addressDetailed = addressDetailed;
    }

    public String getAddressTag() {
        return addressTag;
    }

    public void setAddressTag(String addressTag) {
        this.addressTag = addressTag;
    }

    public String getAddressDefaultChoose() {
        return addressDefaultChoose;
    }

    public void setAddressDefaultChoose(String addressDefaultChoose) {
        this.addressDefaultChoose = addressDefaultChoose;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public Date getUpdateDate() {
        return updateDate;
    }

    public void setUpdateDate(Date updateDate) {
        this.updateDate = updateDate;
    }

    public String getLogicDelete() {
        return logicDelete;
    }

    public void setLogicDelete(String logicDelete) {
        this.logicDelete = logicDelete;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "Address{" +
        "id=" + id +
        ", userId=" + userId +
        ", addressName=" + addressName +
        ", addressPhone=" + addressPhone +
        ", provinceId=" + provinceId +
        ", cityId=" + cityId +
        ", areaId=" + areaId +
        ", addressStreet=" + addressStreet +
        ", addressZip=" + addressZip +
        ", addressDetailed=" + addressDetailed +
        ", addressTag=" + addressTag +
        ", addressDefaultChoose=" + addressDefaultChoose +
        ", createDate=" + createDate +
        ", updateDate=" + updateDate +
        ", logicDelete=" + logicDelete +
        "}";
    }
}
